package com.xunk.equipment.influxdb.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.influxdb.annotation.Column;
import org.influxdb.annotation.Measurement;

import java.io.Serializable;

/**
 * @ProjectName: xunk
 * @Package: com.xunk.equipment.domain.influxdb
 * @ClassName: EquiqmentInfluxEntity
 * @Author: dongxiaoxin
 * @Description: 设备时序数据实体类
 * @Date: 2021/3/26 10:20
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Measurement(name = "tb_ruying_equiqment", database = "paramter_db", retentionPolicy = "default")
public class RuyingEquiqmentInfluxEntity implements Serializable {

    // 设备id
    @Column(name = "device_id", tag = true)
    private String deviceId;

    // 设备服务id
    @Column(name = "service_id", tag = true)
    private Integer serviceId;

    // 设备属性id
    @Column(name = "property_id", tag = true)
    private Integer propertyId;

    // 属性值
    @Column(name = "property_value")
    private String propertyValue;

    // status
    @Column(name = "dept_id")
    private Long deptId;
}
